import { IAppOption } from "../../../../typings"

const app = getApp<IAppOption>()

Page({

    /**
     * 页面的初始数据
     */
    data: {
        searchValue: "你好",
        productList: [
            {id:1, title:"简约条纹客厅沙发卧室枕头抱枕靠垫套", price: "12.01", image: "http://127.0.0.1:8111/static/upload/image/p3.png"},
            {id:2, title:"简约条纹客厅沙发卧室枕头抱枕靠垫套", price: "12.00", image: "http://127.0.0.1:8111/static/upload/image/p1.jpg"},
            {id:3, title:"简约条纹客厅沙发卧室枕头抱枕靠垫套", price: "12.00", image: "http://127.0.0.1:8111/static/upload/image/p2.jpg"},
            {id:1, title:"简约条纹客厅沙发卧室枕头抱枕靠垫套", price: "12.01", image: "http://127.0.0.1:8111/static/upload/image/p3.png"},
            {id:2, title:"简约条纹客厅沙发卧室枕头抱枕靠垫套", price: "12.00", image: "http://127.0.0.1:8111/static/upload/image/p1.jpg"},
            {id:3, title:"简约条纹客厅沙发卧室枕头抱枕靠垫套", price: "12.00", image: "http://127.0.0.1:8111/static/upload/image/p2.jpg"},
            {id:1, title:"简约条纹客厅沙发卧室枕头抱枕靠垫套", price: "12.01", image: "http://127.0.0.1:8111/static/upload/image/p3.png"},
            {id:2, title:"简约条纹客厅沙发卧室枕头抱枕靠垫套", price: "12.00", image: "http://127.0.0.1:8111/static/upload/image/p1.jpg"},
            {id:3, title:"简约条纹客厅沙发卧室枕头抱枕靠垫套", price: "12.00", image: "http://127.0.0.1:8111/static/upload/image/p2.jpg"}
        ],
    },
  
    /**
     * 生命周期函数--监听页面加载
     */
    onLoad() {
        app.checkLogined()
    },
  
    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady() {
      
    },
  
    /**
     * 生命周期函数--监听页面显示
     */
    onShow() {

    },
  
    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide() {
      
    },
  
    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload() {
      
    },
  
    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh() {
        console.log("onPullDownRefresh")
    },

    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom() {
      console.log("onReachBottom")
    },
  
    /**
     * 用户点击右上角分享
     */
    onShareAppMessage(_pts): WechatMiniprogram.Page.ICustomShareContent {
        return {}
    },
  })
  
  // 解决无法重新声明块级范围变量的问题
  export {}